<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="common/include :: header('新增服务项')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-appointment-add">
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">客户姓名：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="customerName"   required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">联系方式：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="customerPhone"   required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">预约时间：</label>
				<div class="col-sm-8">
					<div class="input-group date">
						<input name="appointmentTime" class="form-control" placeholder="yyyy-MM-dd HH:mm" type="text" required>
						<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label is-required">车牌号码：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="licensePlate"   required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">汽车类型：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="carSeries"   required>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">服务分类：</label>
				<div class="col-sm-8">
					<div class="111" >
						<select  class="form-control m-b" name="serviceType">
							<option th:each="dict : ${@dict.getType('cmi_service_type')}"
									th:id = "${dict.id}" th:value="${dict.value}"
									th:text="${dict.label}"></option>
						</select>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label is-required">备注信息：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="info"   required>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="common/include :: footer" />
	<th:block th:include="common/include :: datetimepicker" />
	<script type="text/javascript">
		var prefix = ctx + "/business/appointment";

		$("input[name='appointmentTime']").datetimepicker({
			format: "yyyy-mm-dd hh:ii",
			autoclose: true
		});
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/add", $('#form-appointment-add').serialize());
	        }
	    }
	</script>
</body>
</html>
